// 配置编译环境和线上环境之间的切换
let baseUrl = "",
  baseApi = "";
let iconfontVersion = ["567566_pwc3oottzol"];
let iconfontUrl = `//at.alicdn.com/t/font_$key.css`;
let codeUrl = `${baseUrl}/code`;
const env = process.env;
if (env.NODE_ENV == "development") {
  baseUrl = ""; // 开发环境地址
  baseApi = `/yening`;
} else if (env.NODE_ENV == "production") {
  baseUrl = ``; //生产环境地址
} else if (env.NODE_ENV == "test") {
  baseUrl = ``; //测试环境地址
}

export { baseApi, baseUrl, iconfontUrl, iconfontVersion, codeUrl, env };
